<template>
    <div class="box">
        <!-- 内容区域 -->
        <div class="content">
            {{$t('encrytype')}}：{{result.signType}}
        </div>
        <div class="content2">
            {{$t('secretkey')}}：{{result.secretKey}}
        </div>
    </div>
</template>

<script>
import {
    getsecretkeylist
} from '@/libs/reqlist.js'
export default {
    data() {
        return {
            result: {},
             // 查询入参
            merId: ''
        }
    },
    methods: {
        getSecretKey() {
            getsecretkeylist(JSON.stringify({ merId: this.merId })).then(res => {
                if (res.data.code === '000000') {
                    this.result = res.data.data
                }
            })
        }
    },
    mounted() {
           // 全局商户id
        this.merId = window.sessionStorage.getItem('merId')
        this.getSecretKey()
    }
}
</script>

<style lang="less" scoped>
@import './secretKey.less';
</style>
